package com.manager.core.module.manager.entity.article;

import com.manager.commons.base.AuditEntity;

import java.io.Serializable;
import java.util.List;

/**
 * 文章类型
 * Created by wcy on 2015/12/23.
 */
public class GeneralTopicCategory extends AuditEntity implements Serializable {
    private static final long serialVersionUID = -345958972825736401L;
    private String code;// 编码 varchar(20) 20
    private String parent_code;// 父级_编码 varchar(20) 20 是
    private String name;// 名称 varchar(100) 100 是
    private String location;// 布局位置 varchar(20) 20 是
    private String type;// 类型 varchar(20) 20 是   category 分类/content 内容/download 下载/link 链接
    private String content;// 内容 text  是
    private String simg;// 缩略图 varchar(200) 200 是
    private String url;// 链接地址 varchar(100) 100 是
    private Integer level;//级别 int  是
    private String level_code;// 级别编码 varchar(1000) 1000 是
    private boolean leaf;// 叶子 bool  是
    private boolean enabled;//启用状态 bool  是

    private Integer sort;// 序号 int

    private List<GeneralTopicCategory> children;

    public Integer getLevel() {
        return level;
    }


    public void setLevel(Integer level) {
        this.level = level;
    }

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParent_code() {
        return parent_code;
    }

    public void setParent_code(String parent_code) {
        this.parent_code = parent_code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSimg() {
        return simg;
    }

    public void setSimg(String simg) {
        this.simg = simg;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


    public String getLevel_code() {
        return level_code;
    }

    public void setLevel_code(String level_code) {
        this.level_code = level_code;
    }

    public List<GeneralTopicCategory> getChildren() {
        return children;
    }

    public void setChildren(List<GeneralTopicCategory> children) {
        this.children = children;
    }
}
